package com.hymall.service.admin;

import com.hymall.bean.MarketComment;
import com.hymall.bean.MarketGoods;
import com.hymall.bean.MarketStorage;
import com.hymall.bean.bo.AddGoodBO;
import com.hymall.bean.bo.AdminSearchBO;
import com.hymall.bean.bo.AdminUPDataBO;
import com.hymall.bean.common.BasePageInfo;
import com.hymall.bean.common.CommonData;
import com.hymall.bean.vo.CatAndBrandVO;
import com.hymall.bean.vo.GoodsDetailVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: haiyuny
 * @Date: 2022/7/17 10:39
 * @Description:商品管理 -> 商品列表
 */
public interface GoodsService {
    CommonData queryGoodsList(BasePageInfo info, AdminSearchBO search);

    GoodsDetailVO queryGoodsById(Integer id);

    CatAndBrandVO queryCatAndBrand();


    void updateGoods(AdminUPDataBO up);

    void deleteGoods(MarketGoods goods);

    MarketStorage create(MultipartFile file);

    int createGoods(AddGoodBO up);

    CommonData queryCommentList(BasePageInfo info, AdminSearchBO search);

    void deleteComment(MarketComment comment);


}
